com.epiphan.vga2usb
Class Frame

Object
  extended bycom.epiphan.vga2usb.BasicFrame
      extended bycom.epiphan.vga2usb.Frame

public final class Frame
extends com.epiphan.vga2usb.BasicFrame

A single grabbed frame.

See Also:
RawFrame, Grabber

Field Summary
protected  PixelFormat format
          The pixel format.
protected  int height
          Frame height.
protected  int length
          Part of the pixels array which is actually occupied by pixels.
protected  byte[] pixels
          Frame pixels.
protected  int width
          Frame width.
 
Method Summary
 int getHeight()
          Returns the height of the frame (number of rows).
 java.awt.Image getImage()
          Return an Image representation of this frame
 int getWidth()
          Returns the width of the frame (number of columns).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected PixelFormat format
The pixel format.


height

protected int height
Frame height.


length

protected int length
Part of the pixels array which is actually occupied by pixels.


pixels

protected byte[] pixels
Frame pixels.


width

protected int width
Frame width.

Method Detail

getImage

public java.awt.Image getImage()
Return an Image representation of this frame

Returns:
The Image that represents the contents of this frame

getHeight

public final int getHeight()
Returns the height of the frame (number of rows).

Returns:
The frame height.

getWidth

public final int getWidth()
Returns the width of the frame (number of columns).

Returns:
The frame width.


Copyright © 2008-2012 Epiphan Systems Inc. All rights reserved.